import {Injectable} from '@angular/core';
import {Http, Response} from '@angular/http';
import {Car} from '../domain/car';
import { Observable } from 'rxjs/Rx';

@Injectable()
export class CountryService {

    constructor(private http: Http) {}

    getCountries() {
        return this.http.get('app/resources/data/countries.json').map(res => {
        return res.json().data;

      });
  }
}
